package com.ruoyi.recipe.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 菜品浏览历史对象 recipe_browsing_history
 * 
 * @author ruoyi
 * @date 2025-01-21
 */
public class RecipeBrowsingHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 浏览历史ID */
    private Long historyId;

    /** 菜品ID */
    @Excel(name = "菜品ID")
    private Long dishId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 微信openid */
    @Excel(name = "微信openid")
    private String openId;

    /** 浏览开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "浏览开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 浏览结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "浏览结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    public void setHistoryId(Long historyId) 
    {
        this.historyId = historyId;
    }

    public Long getHistoryId() 
    {
        return historyId;
    }

    public void setDishId(Long dishId) 
    {
        this.dishId = dishId;
    }

    public Long getDishId() 
    {
        return dishId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("historyId", getHistoryId())
            .append("dishId", getDishId())
            .append("userId", getUserId())
            .append("openId", getOpenId())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
